﻿using lingopen.Application;
using lingopen.AutoMapper;
using lingopen.Entity;
using lingopen.Entity.BLE;
using lingopen.Entity.System;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lingopen.Application.BLE
{
    public class AddOrUpdateEmpTypeInputBase : ValidationModel
    {
        [RequiredAttribute(ErrorMessage = "名称不能为空")]
        public string Name { get; set; }
        [RequiredAttribute(ErrorMessage = "编号不能为空")]
        public string Code { get; set; }
         
        [RequiredAttribute(ErrorMessage = "级别不能为空")]
        public int? Level { get; set; }
         
        public bool IsEnabled { get; set; }
        public string Description { get; set; }
    }

    [MapToType(typeof(BLE_Emp_Type))]
    public class AddEmpTypeInput : AddOrUpdateEmpTypeInputBase
    {
        public string CreateUserId { get; set; }
    }

    [MapToType(typeof(BLE_Emp_Type))]
    public class UpdateEmpTypeInput : AddOrUpdateEmpTypeInputBase
    {
        [RequiredAttribute(ErrorMessage = "{0}不能为空")]
        public string Id { get; set; }
    }
}
